package com.woniuxy.cloud.carl.carlgoods.client;
import com.woniuxy.cloud.carl.carlgoods.client.dto.PropValueDto;
import com.woniuxy.cloud.carl.carlgoods.client.param.AddpropValueParam;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "PropValueClient",name="carlgoods")
public interface PropValueClient {

    @PostMapping("/addpropValue")
    public Result addpropValue(@RequestBody AddpropValueParam param);
    @GetMapping("/listPropvalues")
    public  Result<List<PropValueDto>> list();
}
